package com.bsoft.gol.hcs.clinical.dao;

import com.bsoft.gol.hcs.clinical.entity.OdsCheckSetDetail;
import ctd.persistence.annotation.DAOMethod;
import ctd.persistence.annotation.DAOParam;
import ctd.persistence.support.hibernate.HibernateSupportDelegateDAO;

import java.util.List;

/**
 * @Author impel
 * @Date 2021/5/7 13:28
 * @Description:
 * @Version 1.0
 */
public abstract class OdsCheckSetDetailDAO extends HibernateSupportDelegateDAO<OdsCheckSetDetail> {
    public OdsCheckSetDetailDAO(){
        this.setKeyField("checkSetDetailId");
    }

    @DAOMethod(sql = " delete from OdsCheckSetDetail where medicalTechnologySetId =:medicalTechnologySetId")
    public abstract void deleteOdsCheckSetDetailList(@DAOParam("medicalTechnologySetId")int medicalTechnologySetId);

    @DAOMethod(sql = "from OdsCheckSetDetail where medicalTechnologySetId =:medicalTechnologySetId")
    public abstract List<OdsCheckSetDetail> findOdsCheckSetDetailList(@DAOParam("medicalTechnologySetId")int medicalTechnologySetId);
}
